package com.example.demo.model.response;

import com.example.demo.common.LongToDateStringSerialize;
import com.example.demo.common.LongToMonthStringSerialize;
import com.example.demo.jooq.tables.pojos.VisaCard;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.math.BigDecimal;
@Data
public class VisaResponse {
    private String visaCardId="NO.10001";
    private String visaType="虚拟卡";
    private String visaChannel="万事达";
    private String visaCardNo="266436435132131";
    @JsonSerialize(using = LongToDateStringSerialize.class)
    private Long createdDate=1569573653000L;
    @JsonSerialize(using = LongToDateStringSerialize.class)
    private Long updatedDate=1569573653000L;
    private String cvc="123";
    @JsonSerialize(using = LongToMonthStringSerialize.class)
    private Long  endDate=1569573653000L;
    private BigDecimal totalAmount=new BigDecimal(2000);
    private BigDecimal useAmount=new BigDecimal(1000);
    private BigDecimal balanceAmount=new BigDecimal(1000);
    private String cardStatus="使用中";

}
